class Student():

    def __init__(self,name,score,address = None):
        self.__name = name
        self.__score = score
        self.address = address


    def Print_str(self):
        print("{}这位同学考了：{}分".format(self.__name,self.__score))

    #获取私有属性
    def get_score(self):
        return self.__score
    

    def get_name(self):
        return self.__name

    #修改私有属性
    def set_name(self):
        pass

s = Student("小明",80)
s.Print_str()
